package com.itheima.weirpc.fault.retry;

import com.itheima.weirpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * ClassName: RetryStrategy
 * Package: com.itheima.weirpc.fault.retry
 * Description:
 *  重试策略
 * @Author 看到风
 * @Create 2024/12/13 15:53
 * @Version 1.0
 */
public interface RetryStrategy {
    /**
     * 重试
     * @param callable
     * @return
     * @throws Exception
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}
